package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.PageDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;

import java.util.List;

public interface SpuService extends IService<Spu> {


    PageDTO<SpuDTO> queryPage(Integer page, Integer rows, Long brandId, Long categoryId, Long id, Boolean saleable);

    List<SpecParamDTO> listSpec(Long id, Boolean searching);

    SpuDTO querySpuById(Long cid);

    SpuDTO queryGoods(Long spuId);

    void addGoods(SpuDTO spuDTO);

    void saleableById(Long cid, Boolean saleable);

    void updateGoods(SpuDTO spuDTO);
}
